import { baseImageUrl } from "@/config"

// 图片拼接
export function useImage(url) {
  return `${baseImageUrl}${url}`
}

// 手机号脱敏
export function encryptMobile(phone) {
  if (!phone) return ""
  const pat = /(\d{3})\d*(\d{4})/
  const result = phone.replace(pat, "$1***$2")
  return result
}
